package com.gs.weather.dao.mapper;

import com.gs.weather.entity.DisasterProcess;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Legolas
 * Date: 2017/9/21 0021
 */
@Repository
public interface DisasterProcessMapper {

    //添加灾情过程信息
    void addDisasterProcess(DisasterProcess disasterProcess);

    //更新灾情过程信息
    void updateDisasterProcess(DisasterProcess disasterProcess);

    //查询某街镇(某年、某月、某年某月)所有灾情过程信息
    List<DisasterProcess> queryAllDisasterProcessWithXsAreaNameOrTime(@Param("name") String name , @Param("likeTime")  String likeTime);

    //根据id查询灾情过程信息
    DisasterProcess queryDisasterProcessById(long id);

    //删除灾情过程信息
    void deleteDisasterProcess(long id);
}
